﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace predic.Web.Controls
{
    public partial class LeftMenu : UserControl
    {
        private Services.ContentDisplayService contentDisplayService = null;

        public event RoutedEventHandler ButtonClicked;



        public LeftMenu()
        {
            InitializeComponent();
            this.Loaded += new RoutedEventHandler(LeftMenu_Loaded);
        }

        void LeftMenu_Loaded(object sender, RoutedEventArgs e)
        {
            contentDisplayService = Services.ServiceManager.GetInstance<Services.ContentDisplayService>();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            if (ButtonClicked != null)
                ButtonClicked.Invoke(this, new RoutedEventArgs());

            contentDisplayService.ShowContent(Core.Enums.MainContentEnum.MaintainPredici);
        }
    }
}
